export default {
  set(name, obj) {
    if (obj instanceof Object) {
      localStorage.setItem(name, JSON.stringify(obj))
      return;
    }
    localStorage.setItem(name, obj)
  },
  get(name) {


    return JSON.parse(localStorage.getItem(name))
  }
}